"; $html .= ""; $html .= ""; $html .= ""; $html .= "brainaids Sailonline Toolbox"; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= ""; $html .= "
"; $html .= "\"brainaid\"
"; $html .= "\"Sailonline\""; $html .= "
"; include 'status.php'; $html .= status_pane(); $html .= "
 
"; include 'toolbox.php'; $html .= toolbox($token); $html .= "
"; $html .= ""; $html .= ""; $html .= ""; $html .= "
"; if (isset($token)) { if ($tool == 'DC editor') { include 'dc-edit.php'; } elseif ($tool == 'Polar') { include 'polar.php'; } elseif ($tool == 'Navigation') { include 'navigation.php'; } elseif ($tool == 'Weather') { include 'weather.php'; } elseif ($tool == 'Chart and Info') { include 'notice.php'; } else { include 'home.php'; } if (isset($tool)) { setcookie("toolbox_" . $id . "[tool]", $tool, time() + 24 * 3600, "/sailonline/toolbox"); } } else { include 'home.php'; } $html .= tool($race, $boat, $token); $html .= "
"; $html .= ""; $html .= ""; $accept = explode(';', $_SERVER['HTTP_ACCEPT']); $types = explode(',', $accept[0]); if (in_array("application/xhtml+xml", $types)) { header("Content-Type: application/xhtml+xml; charset=\"UTF-8\""); } else { header("Content-Type: text/html; charset=\"UTF-8\""); } send_output($html); ?>